package oa.hleast.xswl.pojo.domain.blog;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import oa.hleast.common.base.BaseEntity;

/**
 * ums_blog_comment 博客评论表
 *
 * @author 302
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("ums_blog_comment")
public class UmsBlogComment extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 博客内容ID
     */
    private Long blogId;

    /**
     * 评论用户ID
     */
    private Long commentUserId;

    /**
     * 评论用户昵称
     */
    private String commentUserName;

    /**
     * 评论用户头像
     */
    private String commentUserAvatar;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 父级评论的ID 暂时可能用不到
     */
    private Long parentCommentId;

    /**
     * 评论层级
     */
    private Integer leve;

    /**
     * 删除标识  (0未删除 1已删除)
     */
    @TableLogic(value = "0", delval = "1")
    private Boolean deleted;
}